package cn.mntool.ftp.core;

/**
 * describe: ftp设置
 *
 * @author lianying
 * @date 2018/12/13
 */
public class FtpConfig {
    /**
     * userName:用户名
     * passWord:密码
     * host:主机地址
     * port:端口
     * timeOut:超时时间  默认10秒
     */
    private String userName;
    private String passWord;
    private String host;
    private int port;
    private int timeOut=10000;

    public FtpConfig(String userName, String passWord, String host, int port, int timeOut) {
        this.userName = userName;
        this.passWord = passWord;
        this.host = host;
        this.port = port;
        this.timeOut = timeOut;
    }
    public FtpConfig(String userName, String passWord, String host, int port) {
        this.userName = userName;
        this.passWord = passWord;
        this.host = host;
        this.port = port;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getTimeOut() {
        return timeOut;
    }

    public void setTimeOut(int timeOut) {
        this.timeOut = timeOut;
    }
}
